<?php
class tbl_system_notice extends AppModel{

    public $useTable = 'tbl_system_notice';
    public $useDbConfig = 'log_db';
    public $primaryKey = 'num';

    public function get_server_status()
    {
        $params = array(
            'fileds' => array(
                'num', 'url', 'link_url', 'start_date', 'end_date', 'server_status'
            )
        );

        $data = $this->find('first', $params);
        return $data;
    }
}